// for mock
import request from "@/utils/request";

export const BASE_URL = 'http://localhost:7001';
/*版本*/
export const VERSION = 1;

export const STORAGE_BASE_URL = `/v${VERSION}/cos/storage?Key=`;

export function upload(data) {
  return request({
    url: `/v${VERSION}/cos/storage`,
    method: 'post',
    data,
    headers: { 'Content-Type': 'multipart/form-data' },
  })
}
